"""
scene.py

Created by daspork on 2012-04-21.
Copyright (c) 2012 Knuckledragger Games. All rights reserved.
"""

from transformation import Transformation
from camera import Camera
    
class SceneNode(object):
    def __init__(self):
        self._children = []
        self._parent = None
        self._transformation = Transformation()
        self._collider = None


    def AddChild(self, child):
        self._children.append(child)
        child._parent = self


    def Draw(self):
        pass


    def DrawAll(self):
        for child in self._children:
            child.DrawAll()

    def Update(self, dt):
        pass


    ############################################################################
    ## Properties                                                             ##
    ############################################################################

    @property
    def Children(self):
        return self._children


    @property
    def Transform(self):
        return self._transformation


    @property
    def Parent(self):
        return self._parent


